package com.cy.mall.dao.mapper.customer;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.mall.model.domain.customer.CustomerContact;
import com.cy.mall.model.vo.customer.CustomerContactInfoVO;

import tk.mybatis.mapper.common.BaseMapper;

/**
 * CustomerContactMapper
 *
 * @author tanyilin
 *
 * @create 2019年2月25日 上午11:38:30
 */
@Mapper
public interface CustomerContactMapper extends BaseMapper<CustomerContact> {

	/**
	 * 批量新增
	 * 
	 * @param customerContactList
	 */
	void insertBatch(@Param("customerContactList") List<CustomerContact> customerContactList);

	/**
	 * 根据更新时间删除无效数据
	 * 
	 * @param customerId
	 * @param updateTime
	 */
	void deleteByUpdateTime(@Param("customerId") Long customerId, @Param("updateTime") Date updateTime);

	/**
	 * 根据customerId查询客户联系人信息列表
	 * 
	 * @param customerId
	 * @return
	 */
	List<CustomerContactInfoVO> selectCustomerContactInfoByCustomerId(@Param("customerId") Long customerId);

	
}
